package com.ilink.teacherservice.entity.DTO;


import com.fasterxml.jackson.annotation.JsonFormat;
import com.ilink.ilinkcommon.domain.PO.studyservice.StudyTeacherCoursesTeacher;
import java.io.Serializable;
import java.util.Date;
import java.util.List;
import lombok.Data;

@Data
public class CourseResponse implements Serializable {

    private static final long serialVersionUID = 1L;
    private Long courseId;          // 课程的唯一标识
    private String teacherId;       // 授课老师的用户id, 外键关联tb_user
    private Long folderId;          // 课程文件夹id，外键关联

    private String courseName;        // 课程名称
    private String courseTag;       // 课程标签
    private String courseImage;       // 课程图片

    private List<StudyTeacherCoursesTeacher> teacher;

    private String courseDescription; // 课程简介

    private Long viewNum;           //课程点击量

    @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date createdAt;  // 创建时间

    @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date updatedAt;  // 创建时间

    //课程学习完成状态 0 1 2: 未学习  学习中 已学习
    private int iscourseComplete;

    //课程回放记录时长
//    private int courseRrecordTime;

    //是否通过其他方式完成学习
    private boolean isOtherComplete;

    //课程平台回放学习时长
    private int coursePlatformTime;

}
